<include file="Public/header" />
<title>我的桌面</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 仓配比例 <span class="c-gray en">&gt;</span> 会员等级 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>

<div class="pd-20">
    
    <div class="mt-20">
        <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper no-footer">
            <table class="table table-border table-bordered table-bg table-hover table-sort dataTable no-footer" id="DataTables_Table_0" role="grid" aria-describedby="DataTables_Table_0_info">
            <thead>
            <tr class="text-c" role="row">
                <th width="25" style="width: 25px;"><input type="checkbox" name="" value=""></th>
                <th width="80" class="sorting_desc" tabindex="id" style="width: 80px;">ID</th>
                <th class="sorting" tabindex="name" style="width: 187px;">会员等级名称</th>
                <!-- <th width="80" style="width: 180px;">仓配比例(百分比)</th> -->
                <th width="120" style="width: 120px;">操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="data">
            <tr class="text-c odd" role="row">
                <td><input type="checkbox" value="<{$data.id}>" name=""></td>
                <td class="sorting_1"><{$data.id}></td>
                <td class="text-l"><{$data.name}></td>
                <!-- <td><{$data.storage_proportion}></td> -->
                <td class="f-14 td-manage">
                     <a style="text-decoration:none" class="ml-5" onclick="detail('<{$data.id}>')" href="javascript:;" title="详细">详细</a>
                </td>
            </tr>
            </foreach>
            </tbody>
        </table>
    </div>
</div>
    </div>
<include file="Public/footer" />
<include file="Public/footer_js" />
<script>
	function detail(id){
        var index=layer.open({
            type: 2,
            title: '价格详细',
            shadeClose: true,
            shade: 0.5,
            area: ['800px', '590px'],
            content: '__MODULE__/Role/storage_price_department_detail/storage_config/1/id/'+id+"/"+Math.random() //iframe的url
        });
    }
    <!-- function edit(id){ -->
        <!-- var index=layer.open({ -->
            <!-- type: 2, -->
            <!-- title: '会员等级修改', -->
            <!-- shadeClose: true, -->
            <!-- shade: 0.5, -->
            <!-- area: ['800px', '590px'], -->
            <!-- content: '__MODULE__/Role/storage_config_department_edit/id/'+id+"/"+Math.random() //iframe的url -->
        <!-- }); -->
    <!-- } -->
   
    function search(_this){
        var sort,dec;
        if(_this){
            if(_this.attr('class')=='sorting_desc'){
                sort=_this.attr('tabindex');
                dec='asc';
            }
            if(_this.attr('class')=='sorting_asc'){
                sort=_this.attr('tabindex');
                dec='desc';
            }
            if(_this.attr('class')=='sorting'){
                sort=_this.attr('tabindex');
                dec='asc';
            }
        }
        location.href="__ACTION__?sort="+sort+"&dec="+dec;
    }

    (function(){
        $(".sorting,.sorting_desc,.sorting_asc").click(function (){
            search($(this));
        });
        for(var i=0;i<$(".sorting,.sorting_desc,.sorting_asc").length;i++){
            if('<{$Think.get.sort}>'!=''){
                if($(".sorting,.sorting_desc,.sorting_asc").eq(i).attr('tabindex')=='<{$Think.get.sort}>'){
                    $(".sorting,.sorting_desc,.sorting_asc").attr('class','sorting');
                    $(".sorting,.sorting_desc,.sorting_asc").eq(i).attr('class','sorting_<{$Think.get.dec}>');
                }
            }
        }
    })();
</script>
</body>
</html>